package com.yunzheng.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * @author 郭思良
 * @create 2020-07-23 15:38
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "project_file_content")
@Accessors(chain = true)
public class ProjectFileContent implements Serializable {

    /**
     * 文档id
     */
    @TableId(value = "file_id", type = IdType.INPUT)
    private String fileId;

    /**
     * 文档内容
     */
    @TableField(value = "file_content")
    private String fileContent;

    /**
     * 转换成html的内容
     */
    @TableField(value = "file_content_html")
    private String fileContentHtml;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private LocalDateTime createTime;

    /**
     * 修改时间
     */
    @TableField(value = "update_time")
    private LocalDateTime updateTime;

    private static final long serialVersionUID = 1L;

    public static final String COL_FILE_ID = "file_id";

    public static final String COL_FILE_CONTENT = "file_content";

    public static final String COL_FILE_CONTENT_HTML = "file_content_html";

    public static final String COL_CREATE_TIME = "create_time";

    public static final String COL_UPDATE_TIME = "update_time";
}
